{% extends 'layout/base.html' %}
{% load static %}
{% block content %}
<div class="container-fluid">

    <div class="row">
        <div class="col-lg-12">
            <div class="card">
                <ul class="nav nav-tabs page-tabs">
                    <li class="active"><a href="{% url 'wx_official:edit_org' org.id %}">基本信息</a></li>
                    <li><a href="{% url 'wx_official:article_org' org.id 1 %}">文章列表</a></li>

                </ul>
                <div class="tab-content">
                    <div class="tab-pane active">
                        <span>{{ err_msg }}</span>
                        <form action="{% url 'wx_official:edit_org' org.id %}" method="post">
                            {% csrf_token %}
                            <div class="form-group">
                                <label for="web_site_title">公众号名字</label>
                                <input class="form-control" type="text" id="web_site_title" name="web_site_title"
                                       value="{{ org.org_name }}" placeholder="请输入公众号标题">
                            </div>
                            <div class="form-group">
                                <label for="fakeID">公众号FakeID</label>
                                <input class="form-control" type="text" id="fakeID" name="fakeID"
                                       value="{{ org.fake_id }}" placeholder="请输入公众号fakeid">
                                <small class="help-block">微信内部对公众号的标识id，必填项，不建议修改</small>
                            </div>
                            <div class="form-group">
                                <label for="web_site_logo">LOGO图片</label>

                                <input type="text" class="form-control col" name="web_site_logo" id="web_site_logo"
                                       value="{{ org.logo_url }}">
                                <label for="">图片预览</label>
                                <img class="img-circle" src="{{ org.logo_url }}" alt="" style="width: 50px;margin-top: 10px;margin-left: 10px">
                            </div>
                            <div class="form-group">
                                <label for="orgTyoe">公众号文章类型</label>
                                <input class="form-control" type="text" id="orgTyoe" name="orgTyoe"
                                       value="{{ org.article_type }}" placeholder="请输入公众号类型">
                            </div>
                            <div class="form-group">
                                <label for="web_site_description">公众号描述信息</label>
                                <textarea class="form-control" id="web_site_description" rows="3"
                                          name="web_site_description"
                                          placeholder="请输入公众号描述信息">{{ org.org_desc }}</textarea>
                                <small class="help-block">公众号描述，介绍公众号的主要功能</small>
                            </div>
                            <div class="form-group">
                                <label for="useFor">作用位置 <span style="color: red"> * </span></label>
                                <select id="useFor" class="form-control" name="useFor">
                                    <option>官网</option>
                                    <option>51客</option>
                                    <option>都是</option>
                                </select>
                            </div>
                            <div class="form-group">
                                <label for="orgLevel">爬取优先级<span style="color: red">*</span></label>
                                <select id="orgLevel" class="form-control" name="orgLevel">
                                    <option>高</option>
                                    <option>中</option>
                                    <option>低</option>
                                    <option>很低</option>
                                </select>

                            </div>
                            <div class="form-group">
                                <label class="btn-block" for="web_site_status">爬取开关</label>
                                <label class="lyear-switch switch-solid switch-primary">
                                    <input type="checkbox" checked="" id="web_site_status">
                                    <span></span>
                                </label>
                                <small class="help-block">爬取关闭后，系统将不会再爬取该公众号的文章，打开方可继续抓取</small>
                            </div>
                            <div class="form-group">
                                <button type="submit" class="btn btn-primary m-r-5">确 定</button>
                                <button type="reset" class="btn btn-default">取 消</button>
                            </div>
                        </form>

                    </div>
                </div>

            </div>
        </div>

    </div>

</div>
{% endblock %}